package appapi.entity.app;

import appapi.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ApiModel
@Data
public class RectificationEntity  extends BaseEntity {
    /**
     * ID
     */
    @ApiModelProperty(value = "维保ID")
    private Long rectId;

    /**
     * 类型
     */
    @ApiModelProperty(value = "类型")
    private Integer rectType;

    /**
     * 整改项目
     */
    @ApiModelProperty(value = "整改项目")
    private String rectItem;

    /**
     * 来源
     */
    @ApiModelProperty(value = "来源")
    private Long rectSource;

    @ApiModelProperty(value = "整改发起人")
    private String soutOper;

    /**
     * ID
     */
    @ApiModelProperty(value = "主记录ID")
    private Long recId;
    /**
     * 整改要求
     */
    @ApiModelProperty(value = "整改要求")
    private String rectRequire;

    @ApiModelProperty(value = "生成类型 0添加 1生成")
    private Integer rectAdd;

    /**
     * 整改状态 0待整改 1整改完成 2已确认
     */
    @ApiModelProperty(value = "整改状态 0待整改 1整改完成 2已确认")
    private Integer rectState;

    /**
     * 整改人员
     */
    @ApiModelProperty(value = "整改人员")
    private String operId;

    /**
     * 整改时间
     */
    @ApiModelProperty(value = "整改时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date rectDate;

    /**
     * 整改结果
     */
    @ApiModelProperty(value = "整改结果")
    private Integer rectResult;

    /**
     * 整改备注
     */
    @ApiModelProperty(value = "整改备注")
    private String rectNote;

    /**
     * 整改设备
     */
    @ApiModelProperty(value = "整改设备")
    private Long equipId;

    /**
     * 整改图片
     */
    @ApiModelProperty(value = "整改图片")
    private String rectImgs;

    /**
     * 整改后图片
     */
    @ApiModelProperty(value = "整改后图片")
    private String handleImgs;

    /**
     * 审核状态
     */
    @ApiModelProperty(value = "审核状态")
    private Integer auditState;
}
